package com.lsc.www.day09.hm;

import java.util.Scanner;

public class h12 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入三边长：");
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a + b > c && b + c > a && a + c > b) {
            if (a == b && b == c && a == c) {
                System.out.println("是等边三角形");
            } else if (a > b && a > c && a * a == b * b + c * c) {
                System.out.println("是直角三角形");
            } else if (b > a && b > c && b * b == a * a + c * c) {
                System.out.println("是直角三角形");
            } else if (c * c == a * a + b * b) {
                System.out.println("是直角三角形");
            } else {
                System.out.println("是普通三角形");
            }
        } else {
            System.out.println("不是三角形");
        }

    }
}


